package com.wpen.unit.web;

/**
 * web层静态变量
 * 
 * @author Wang Peng
 * @date 2022-12-06
 */
public class WebVariables {
    public final static String START_TIME = "__START_TIME";
    public final static String RESPONSE_RESULT = "__RESPONSE_RESULT";
    public final static String REQUEST_HEAD_AUTH = "Authorization";
    public final static String API_PATH = "/api/";
    public final static String API_NO_AUTH_PATH = "/public/";

    public final static String RESPONSE_SUCC_CODE = "000000";
    public final static String RESPONSE_SUCC_MSG = "ok";
    
    public final static String RESPONSE_AGENT_EXCEPTION = "TRE001";
    public final static String RESPONSE_AGENT_NOTFOUND = "NOTFND";
    public final static String RESPONSE_AGENT_UNKOWN = "UKNOWN";
    public final static String RESPONSE_AGENT_RNNNING = "RUN666";

    public static final String URI_REGISTRY = WebVariables.API_PATH + "public/agent/registry";
    public static final String URI_AGENT_HEALTH = WebVariables.API_PATH + "health";
    public static final String URI_AGENT_START = WebVariables.API_PATH + "agent/start";
//    public static final String URI_AGENT_STOP = WebVariables.API_PATH + "agent/stop";
    public static final String URI_AGENT_CHECK = WebVariables.API_PATH + "agent/check";
    public static final String URI_AGENT_REMOVE = WebVariables.API_PATH + "agent/remove";
    public static final String URI_AGENT_KILL = WebVariables.API_PATH + "agent/kill";
}
